package mapsObjects.movable.tank;

import java.awt.Graphics;

import base.Game;

public class MyTank extends ATank {
	
	public MyTank(int _x, int _y, int _width, int _height) {
		super(_x, _y, _width, _height);
		setMaxBullets(1);
	}

	@Override
	public void draw(Graphics g) {
		switch (getDirection())
		{
		case "up":
			g.drawImage(Game.myTankUp, getXPos(), getYPos(), getHeight(), getWidth(), null);
			break;
		case "down":
			g.drawImage(Game.myTankDown, getXPos(), getYPos(), getHeight(), getWidth(), null);
			break;
		case "left":
			g.drawImage(Game.myTankLeft, getXPos(), getYPos(), getHeight(), getWidth(), null);
			break;
		case "right":
			g.drawImage(Game.myTankRight, getXPos(), getYPos(), getHeight(), getWidth(), null);
			break;
			default:
				System.out.println("Wrong Tank direction!");
		}
	}
}